<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>img view</title>
	<!-- <script src="./jquery-2.1.4.min.js"></script> -->
	<script src="./Aut.js"></script>
</head>
<body >
	
	<div id="app">

		<div>{{age}}</div>
		<div>{{info.po.c}}</div>
		<div >{{info.name}}</div>
		<div id='data' :data-info="info.name" :click="btnclick">{{text}}</div>
		<input type="text" v-model="text">

		<div>{{info.kkk}}</div>


	</div>

	<script>
  		var vm = new Aut({
            el: 'app',
            data: {
                text: '赵刚',
                info:{
                	name : "程梦杰",
                	list: [1,2,3,4,5],
                	po:{
                		c:"12345666256"
                	}
                }
            },
            methods:{
            	btnclick: function(e){
            		this.data.info = {
            			name: e.target.innerText,
            			list: [0,0,0,0,0],
            			po:{
                			c:"woqu"
                		}
            		};
            		this.data.age = "0123"
            		var that = this;
            		setTimeout(function(){
            			that.another_func();
            		}, 2000);
            	},
            	another_func: function(){
            		debugger
            		var t = this;
            		var i = 0;
            		// alert(1);
            		this.data.info.po.c = "fdsafdf";
            		this.data.age = "1223岁";
            		this.data.info.kkk = "mydata";
            	}
            }
        });
        var t = {};
        gen_field(t, 'info');
        // var idx = 0;
        // setInterval(function(){
        // 	vm.data.text = idx++;
        // },1000)
        // debugger
        // var e = document.getElementById("data");

        // var i = 0;
	</script>
</body>
</html>